package com.zyh.service.impl;


import com.zyh.entity.Menu;
import com.zyh.entity.MenuChildren;
import com.zyh.entity.Messagefather;
import com.zyh.mapper.Menumapper;
import com.zyh.service.Menuservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class MenuServiceImpl implements Menuservice {
    @Autowired
    Menumapper menumapper;
    @Override
    public List<Menu> getAllmenu(Integer id) {
        return menumapper.getAllmenu(id);
    }

    @Override
    public List<Messagefather> getAllmessages(Integer id) {
        return menumapper.getAllmessages(id);
    }
}
